package day16;

import java.io.Serializable;

public class Student implements Serializable {
    public  String name;
    public String  sex;
    //无参构造方法
    public void  student(){

    }
    //有参构造方法
    public Student(String  name, String  sex) {
        this.name = name;
        this.sex = sex;
    }

    public String  getName() {
        return name;
    }

    public void setName(String  name) {
        this.name = name;
    }

    public String  getSex() {
        return sex;
    }

    public void setSex(String  sex) {
        this.sex = sex;
    }
}
